package org.learn.test;

import java.util.Scanner;

public class SwitchExercise01 {
    public static void main(String[] args) {
        System.out.println("请输入字符");
        Scanner myScanner = new Scanner(System.in);
        char character = myScanner.next().charAt(0);
        switch (character){
            case 'a' :
                System.out.println('A');
                break;
            case 'b' :
                System.out.println('B');
                break;
            case 'c' :
                System.out.println('C');
                break;
            case 'd' :
                System.out.println('D');
                break;
            case 'e' :
                System.out.println('E');
                break;
            default:
                System.out.println("other");
            }
    }
}
